import request from '@/utils/request';

export const getList = (params, current, size) => {
  return request({
    url: '/api/zdservercore-bbs/bbscollect/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/zdserver_bbs/bbscollect/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (params) => {
  return request({
    url: '/api/zdservercore-bbs/bbscollect/remove',
    method: 'post',
    params: {
      ...params
    }
  })
}

// 收藏文章
export const save = (data) => {
  return request({
    url: '/api/zdservercore-bbs/bbscollect/save',
    method: 'post',
    data: data
  })
}

export const update = (row) => {
  return request({
    url: '/api/zdserver_bbs/bbscollect/submit',
    method: 'post',
    data: row
  })
}

